/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package assisisw.smartcal.entitysubsystem.exceptions.calendar;

import assisisw.smartcal.entitysubsystem.Calendar;

/**
 *
 * @author Francesco
 */
public class CalendarNameNotUniqueException extends CalendarException 
{

    // Instance Fields
    
    /***/
    private String proposedName ;
    
    // Instance Methods
    
    /**
     * @param c
     * @param proposedName 
     * @throws IllegalArgumentException
     */
    public CalendarNameNotUniqueException ( Calendar c , String proposedName ) 
    {
        super ( c ) ;
        if ( proposedName != null )
            this.proposedName = proposedName ;
        else
            throw new IllegalArgumentException () ;
    }
    
    /**
     * @return
     */
    public String getProposedName () 
    {
        return proposedName ;
    }
    
}
